//
//  EpointFrameDelegate.m
//  EpointFrame5
//
//  Created by 李亚春 on 14-7-18.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "EpointFrameDelegate.h"
#import "EAD_Login_ViewController.h"

@implementation EpointFrameDelegate

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    
    EAD_Login_ViewController *v = [[EAD_Login_ViewController alloc]init];
    UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:v];
    
    [nav.navigationBar setBackgroundImage:[EpointUIUtils getImageByColor:COLOR(91, 68, 106)] forBarMetrics:UIBarMetricsDefault];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    [nav.navigationBar setTintColor:[UIColor whiteColor]];
    [nav.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                                     [UIColor whiteColor], UITextAttributeTextColor,
                                                                     nil]];
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.rootViewController = nav;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    
    return YES;
}
@end
